package com.itheima.manager;

import com.itheima.service.db.PmsProductCategoryService;
import com.itheima.util.R;
import com.itheima.vo.PmsProductCategoryVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class PmsProductCategoryManager {

    @DubboReference
    PmsProductCategoryService pmsProductCategoryService;

    public R findAll() {
        List<PmsProductCategoryVo> pmsProductCategoryVoList = pmsProductCategoryService.findAll();
        return R.success(pmsProductCategoryVoList);
    }
}
